Namespace - LJCNetCommon
Parameters
increment -
The amount to increment or decrement the indent count.
Returns
The current indent count.
Syntax
C# |
public Int32 AddIndent(Int32 increment = 1)
|
Changes the IndentCount by the provided value.
Example
C# |
var xb = new XMLBuilder();
xb.AddIndent();
xb.AddText("This text is not indented.");
xb.Text("This text is indented.");
var addIndent = false;
xb.Text("Not indented.", addIndent);
xb.Text("No start with newline.", allowNewLine: false);
var result = xb.ToString();
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.